<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>    
<%@page import="comm.util.CommUtil"%>

<%@page import="member.MemberProc"%>
<%@page import="comm.util.SoptHashMap"%>
<%@page import="statics.SoptVars"%><div>
	<%if(session.isNew() || session.getAttribute("SESSION_MEMBER_SEQ")==null){ %>
	<form action="jsp/loginProc.jsp" target="ifr" method="post" onsubmit="return checkForm();">
		email<input type="text" name="email" id="email">
		<br>
		pw<input type="password" name="password" id="password">
		<br>
		<input type="submit" value="login">
		<br>
	</form>
	<a href="javascript:regMember()">회원가입</a>
	<a href="javascript:lostIdPw()">아이디/비밀번호 찾기</a>
	<%}else{
		MemberProc myInfo = new MemberProc();
		SoptHashMap hm = myInfo.getMemberInfoBySeq(session.getAttribute("SESSION_MEMBER_SEQ").toString());
		%>
		<div><%=hm.get("MEMBER_NICK") %></div>
		<div><%=hm.get("MEMBER_EMAIL") %></div>
		<div>
			<%if(hm.get("MEMBER_PIC_URL")!=null && hm.get("MEMBER_PIC_URL").toString().length()>6){ %>
			<img src="data/<%=hm.get("MEMBER_PIC_URL")%>" width="<%=SoptVars.IMG_WIDTH %>" height="<%=SoptVars.IMG_HEIGHT %>"/>
			<%}else{ %>
			이미지 없음
			<%} %>
		</div>
		<a href="logout.jsp">로그아웃</a>
	<%} %>
</div>